﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Cangku.Model;
using Cangku.BLL;

namespace Cangku
{
    public partial class AllStorage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                var list = ShopInfoBLL.GetAllStorage().Select(s=>new { 
                    shopId=s.tb_shopInfo.shopId,
                    shopName=s.tb_shopInfo.shopName,
                    num=s.storageQuantity,
                    stoTime=s.storageDtm
                }).ToList();
                GridView1.DataSource = list;
                GridView1.DataBind();
            }
        }
    }
}